/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.shop;

/**
 *
 * @author Zeus
 */
public class ShopImpl implements Shop {

    private final double itemPrice = 15.00;
    private double dailyAmount = 0;

    @Override
    public double change(double amountPaid) {
        return amountPaid - itemPrice;
    }

    @Override
    public double amountPaid(double amount) {
        dailyAmount += amount;
        return amount;

    }

    @Override
    public double dailyTakeIn() {
        return dailyAmount;
    }
}
